package cn.jianyongjie.system.mapper;

import cn.jianyongjie.system.domain.Permission;
import cn.jianyongjie.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jianyongjie
 * @since 2022-05-13
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    /*
    * @Title: PermissionMapper
    * @Description: 根据sn查询permission
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/15 11:07
    * @Parameters: * @param permissionSn
    * @Return cn.jianyongjie.system.domain.Permission
    */
    Permission loadBySn(String permissionSn);

    /*
    * @Title: PermissionMapper
    * @Description: 查询员工所拥有的权限
    * @Author: JianYongJie
    * @Version: 1.0
    * @Date:  2022/5/15 16:53
    * @Parameters: * @param id
    * @Return void
    */
    List<String> loadLogininfoById(Long id);
}
